import Http from '@/lib/axios'

const iSpacePreUrl = '/app-ispace'

export interface IGetSiteBuildings {
  site_uid: number
}

export interface ICommon {
  getSiteBuildings: (data: IGetSiteBuildings) => Http
}

export default class Common extends Http implements ICommon {
  // 获取站点楼栋
  getSiteBuildings(data: IGetSiteBuildings) {
    return this.get(`${iSpacePreUrl}/site/buildings`, data)
  }
}
